const MyPromise = require("./index copy")
console.log(1);
const promise = new MyPromise((resolve, reject) => {
  resolve(100)
})
const p1 = promise.then(value => {
  console.log(value)
  return p1
})

p1.then(res => { 

}, err => { 
  console.log(err);
})


console.log(3);
